<%@ include file="../common/top.jsp"%>

<div id="BackLink">
    <a href="product?productId=${sessionScope.item.product.productId}">
        Return to ${sessionScope.item.product.name}
    </a>
</div>

<div id="Catalog">

    <table>
        <tr>
            <td>${sessionScope.description}</td>
            <td>${sessionScope.img}</td>
        </tr>
        <tr>
            <td><b> ${sessionScope.item.itemId} </b></td>
            <td>${sessionScope.item.product.name}</td>
        </tr>
        <tr>
            <td>
                <b><font size="4">
                    ${sessionScope.item.attribute1} ${sessionScope.item.attribute2}
                    ${sessionScope.item.attribute3} ${sessionScope.item.attribute4}
                    ${sessionScope.item.attribute5} ${sessionScope.item.product.name}
                </font></b>
            </td>
            <td>
                <c:if test="${sessionScope.item.quantity <= 0}">
                    Back ordered.
                </c:if>
                <c:if test="${sessionScope.item.quantity > 0}">
                    ${sessionScope.item.quantity} in stock.
                </c:if>
            </td>
        </tr>
        <tr>
            <td><fmt:formatNumber value="${sessionScope.item.listPrice}" pattern="$#,##0.00" /></td>
            <td>
                <a href="" class="Button">Add to Cart</a>
            </td>
        </tr>
    </table>

</div>

<%@ include file="../common/bottom.jsp"%>